/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;
import java.sql.*;
import entities.*;
/**
 *
 * @author lion
 */
public class MemberGroupDao {
    private Connection conn = null;
    private PreparedStatement ps = null;
    private ResultSet rs = null;
    MysqlHelper mysql = new MysqlHelper();
    
    public void addToMemberGroup(Groups groups, Member member) throws Exception{
        conn = mysql.GetConnection();
        ps = conn.prepareStatement("INSERT INTO fl_membergroup VALUES (?,?)");
        ps.setInt(1, groups.getGroupid());
        ps.setInt(2, member.getMemberid());
        ps.executeUpdate();
    }
}
